package zh.codegym.task.task04.task0436;


/* 
画矩形
*/

import java.io.*;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            for (int i1 = 0; i1 < n; i1++) {
                System.out.print("8");
            }
            System.out.println();
        }

    }
}
